import request from "@/utils/request";

export default {
  // 获取车辆列表
  getOrderList(searchModel) {
    return request({
      url: "/orders/orderList",
      method: "get",
      params: {
        pageNo: searchModel.pageNo,
        pageSize: searchModel.pageSize,
        applicationId: searchModel.applicationId,
        orderNumber: searchModel.orderNumber,
      },
    });
  },


  getOrderById(id) {
    return request({
      url: `/orders/${id}`,
      method: "get",
    });
  },
  getOrderByIdInfo(id) {
    return request({
      url: `/orders/getById/${id}`,
      method: "get",
    });
  },

  deleteByid(id) {
    return request({
      url: `/orders/${id}`,
      method: "delete",
    });
  },

  updateById(orders) {
    return request({
      url: `/orders/update`,
      method: "put",
      data: orders,
    });
  },
};
